﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace _08类型转换
{
    class Program
    {
        static void Main(string[] args)
        {
            //int n = 12;
            //double j = 9.9;
            //int k = (int)j;//大转小强制转换类型
            //double m = n;//小转大为隐性转换或者叫自动转换
            //Console.WriteLine("{0},{1}",m,k);
            //Console.ReadKey();
            int n = 10;
            int m = 3;
            double y = n / m;
            double z = n * 1.0 / m;
            Console.WriteLine("{0},\n{1},\n{2:0.00}", y,z,z);
            Console.ReadKey();
        }
    }
}
